TDbCommand failed to execute the query SQL "SELECT * FROM `shop_product_categories` WHERE simple_name = "fb5edeb8/prado/logger/"javascript:var_dump('"+name+"')/"" AND parent_category = "" LIMIT 1": SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'javascript:var_dump('"+name+"')/"" AND parent_category = "" LIMIT 1' at line 1
/home/web/sites/gzyms.pl/framework_3_1_10/Data/TDbCommand.php (257)
0246: // Prado::trace('Query Row: '.$this->getDebugStatementText(), 'System.Data');
0247: if($this->_statement instanceof PDOStatement)
0248: $this->_statement->execute();
0249: else
0250: $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText());
0251: $result=$this->_statement->fetch($fetchAssociative ? PDO::FETCH_ASSOC : PDO::FETCH_NUM);
0252: $this->_statement->closeCursor();
0253: return $result;
0254: }
0255: catch(Exception $e)
0256: {
0257: throw new TDbException('dbcommand_query_failed',$e->getMessage(),$this->getDebugStatementText());
0258: }
0259: }
0260:
0261: /**
0262: * Executes the SQL statement and returns the value of the first column in the first row of data.
0263: * This is a convenient method of {@link query} when only a single scalar
0264: * value is needed (e.g. obtaining the count of the records).
0265: * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value.
0266: * @throws TDbException execution failed
0267: */
0268: public function queryScalar()
0269: {
#0 /home/web/sites/gzyms.pl/framework_3_1_10/Data/DataGateway/TDataGatewayCommand.php(123): TDbCommand->queryRow()
#1 /home/web/sites/gzyms.pl/framework_3_1_10/Data/ActiveRecord/TActiveRecordGateway.php(225): TDataGatewayCommand->find(Object(TActiveRecordCriteria))
#2 /home/web/sites/gzyms.pl/framework_3_1_10/Data/ActiveRecord/TActiveRecord.php(584): TActiveRecordGateway->findRecordsByCriteria(Object(ShopProductCategoriesRecord), Object(TActiveRecordCriteria))
#3 /home/web/sites/gzyms.pl/protected/Pages/Produkty.php(107): TActiveRecord->find('simple_name = "...')
#4 /home/web/sites/gzyms.pl/protected/Pages/Produkty.php(50): Produkty->productsList()
#5 /home/web/sites/gzyms.pl/framework_3_1_10/Web/UI/TControl.php(1313): Produkty->onPreRender(NULL)
#6 /home/web/sites/gzyms.pl/framework_3_1_10/Web/UI/TPage.php(220): TControl->preRenderRecursive()
#7 /home/web/sites/gzyms.pl/framework_3_1_10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#8 /home/web/sites/gzyms.pl/framework_3_1_10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#9 /home/web/sites/gzyms.pl/framework_3_1_10/Web/Services/TPageService.php(444): TPageService->runPage(Object(Produkty), Array)
#10 /home/web/sites/gzyms.pl/framework_3_1_10/TApplication.php(1095): TPageService->run()
#11 /home/web/sites/gzyms.pl/framework_3_1_10/TApplication.php(382): TApplication->runService()
#12 /home/web/sites/gzyms.pl/index.php(49): TApplication->run()
#13 {main}